package com.data.common.util.jsonschema.validate;

import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.data.common.system.vo.DictModel;
import com.data.common.util.jsonschema.CommonProperty;
import com.data.modules.online.config.executor.DataBaseConst;

public class NumberProperty extends CommonProperty {

    private static final long f28l = -558615331436437200L;

    private Integer f29m;

    private Integer f30n;

    private Integer f31o;

    private Integer f32p;

    private Integer f33q;

    private String f34r;

    public Integer getMultipleOf() {
        return this.f29m;
    }

    public void setMultipleOf(Integer multipleOf) {
        this.f29m = multipleOf;
    }

    public Integer getMaxinum() {
        return this.f30n;
    }

    public void setMaxinum(Integer maxinum) {
        this.f30n = maxinum;
    }

    public Integer getExclusiveMaximum() {
        return this.f31o;
    }

    public void setExclusiveMaximum(Integer exclusiveMaximum) {
        this.f31o = exclusiveMaximum;
    }

    public Integer getMinimum() {
        return this.f32p;
    }

    public void setMinimum(Integer minimum) {
        this.f32p = minimum;
    }

    public Integer getExclusiveMinimum() {
        return this.f33q;
    }

    public void setExclusiveMinimum(Integer exclusiveMinimum) {
        this.f33q = exclusiveMinimum;
    }

    public String getPattern() {
        return this.f34r;
    }

    public void setPattern(String pattern) {
        this.f34r = pattern;
    }

    public NumberProperty() {
    }

    public NumberProperty(String key, String title, String type) {
        this.f1a = key;
        this.f2b = type;
        this.f6f = title;
        this.f5e = DataBaseConst.f473h;
    }

    public NumberProperty(String key, String title, String view, List<DictModel> include) {
        this.f2b = "integer";
        this.f1a = key;
        this.f5e = view;
        this.f6f = title;
        this.f3c = include;
    }

    @Override
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap();
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.f29m != null) {
            commonJson.put("multipleOf", this.f29m);
        }
        if (this.f30n != null) {
            commonJson.put("maxinum", this.f30n);
        }
        if (this.f31o != null) {
            commonJson.put("exclusiveMaximum", this.f31o);
        }
        if (this.f32p != null) {
            commonJson.put("minimum", this.f32p);
        }
        if (this.f33q != null) {
            commonJson.put("exclusiveMinimum", this.f33q);
        }
        if (this.f34r != null) {
            commonJson.put("pattern", this.f34r);
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
